package com.demo2do.boyle.client.service;

import java.util.List;

import com.demo2do.boyle.common.entity.customer.Customer;
import com.demo2do.boyle.common.entity.customer.message.CustomerMessage;
import com.demo2do.core.service.GenericService;

/**
 * 
 * @author Wilson/Leo
 */
public interface CustomerService extends GenericService<Customer> {

    /**
     * 
     * @param openId
     * @return
     */
    public Customer loadByOpenId(String openId);
	
	/**
	 * 
	 * @param phone
	 * @return
	 */
    public Customer loadByMobile(String mobile);
    
    /**
     * 
     * @param customer
     */
    public void create(Customer customer);
    
    /**
     * 
     * @param customer
     */
	public void updateMessageStaus(List<CustomerMessage> customerMessages);
    
}
